﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar.Metro;
using DevComponents.DotNetBar.Metro.ColorTables;
using DevComponents.DotNetBar;
using CLIENT_EMR.Doctor_Bll;
using CLIENT_EMR.TEMPLATE;

namespace CLIENT_EMR
{
    public partial class frmMain : DevComponents.DotNetBar.Metro.MetroForm
    {
        public frmMain()
        {
            InitializeComponent();

            frmRoleChose fc = new frmRoleChose();
            fc.ShowDialog();            

        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            //MetroColorGeneratorParameters[] metroThemes = MetroColorGeneratorParameters.GetAllPredefinedThemes();
            //foreach (MetroColorGeneratorParameters mt in metroThemes)
            //{
            //    ButtonItem theme = new ButtonItem(mt.ThemeName, mt.ThemeName);
            //    theme.Click += new EventHandler(ChangeMetroThemeExecuted); 
             
            //    theme.CommandParameter = mt;
            //    colorThemeButton.SubItems.Add(theme);
            //}
          

        }

      
        private void metroTileItem_inpatientsInfo_Click(object sender, EventArgs e)
        {
           
        }

        private void frmMain_FormClosing(object sender, FormClosingEventArgs e)
        {
            Application.Exit();
        }

        private void ChangeMetroThemeExecuted(object sender, EventArgs e)
        {
            ICommandSource source = (ICommandSource)sender;
            MetroColorGeneratorParameters theme = (MetroColorGeneratorParameters)source.CommandParameter;
            StyleManager.MetroColorGeneratorParameters = theme;
        }

        private void metroTileItem_Inpatients_Click(object sender, EventArgs e)
        {
            frmOperMain fc = new frmOperMain();          
            fc.Show();
        }

        private void metroTileItem_Template_Click(object sender, EventArgs e)
        {
            frmUcControlMain fc = new frmUcControlMain("ucTemplateManagement");
            fc.ShowDialog();
        }

        private void metroTileItem_Zsk_Click(object sender, EventArgs e)
        {
            frmUcControlMain fc = new frmUcControlMain("frmKnowledge");
            fc.ShowDialog();
        }

        private void metroTileItem_Help_Click(object sender, EventArgs e)
        {
            frmUcControlMain fc = new frmUcControlMain("ucWrite_Type");
            fc.ShowDialog();
        }
      
    }
}
